﻿@model TelerikConnect.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="content-wrapper">

    <hgroup class="title">
        <h1>@ViewBag.Title.</h1>
    </hgroup>

    <section id="loginForm">
        <h2>Use a local account to log in.</h2>
        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <table>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.UserName)
                    </td>
                    <td>
                        <input data-val="true" data-val-required="The User name field is required." id="UserName" name="UserName" type="text" class="k-input" value="">
                        @Html.ValidationMessageFor(m => m.UserName)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Password)
                    </td>
                    <td>
                        <input data-val="true" class="k-input" data-val-required="The Password field is required." id="Password" name="Password" type="password">
                        @Html.ValidationMessageFor(m => m.Password)
                    </td>
                </tr>
            </table>
            @Html.CheckBoxFor(m => m.RememberMe)
            @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            <input type="submit" class="k-button" value="Log in" />
            
            <p>
                <a href="~/Account/Register" class="k-button">Register</a>
            </p>
        }
    </section>

    @*<section class="social" id="socialLoginForm">
        <h2>Use another service to log in.</h2>
        @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
    </section>*@

</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}